package org.example.core.controller;

import org.example.biz.ISysUserService;
import org.example.pojo.po.SysUser;
import org.example.pojo.resp.AjaxResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author lzh
 * @date 2020/8/26 - 15:22
 */
@RestController
public class TestController {

    private final ISysUserService sysUserService;

    public TestController(ISysUserService sysUserService) {
        this.sysUserService = sysUserService;
    }


    @GetMapping("/t1")
    public AjaxResponse<SysUser> test1() {
        SysUser sysUser = sysUserService.getById(2L);
        return AjaxResponse.successMsgData("test1--", sysUser);
    }

}
